package com.example.blog_system.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class CommentDto {
    private Long id;
    
    @NotBlank(message = "评论内容不能为空")
    private String content;

//    @NotNull(message = "文章ID不能为空")
    private Long articleId;
    
    private Long authorId;
    private String authorName;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
} 